<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * 积分赛用户
 *
 * @package App\Models
 *
 */
class IntegralUser extends Model
{
    protected $guarded = [];

    const STATUS_NORMAL = 0;
    const STATUS_MATCHING = 1;

    public static function getDefaultUser($userId, $integralId)
    {
        return [
            'id' => 0,
            'user_id' => $userId,
            'integral_id' => $integralId,
            'win_count' => 0,
            'loss_count' => 0,
            'prize_count' => 0,
            'status' => 0,
            'created_at' => null,
            'updated_at' => null,
        ];
    }
}
